package com.itheima.config;

import com.itheima.domain.User;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        // 数组中的字符串可以放在 配置文件中， 可以获取配置文件数组
        return new String[]{"com.itheima.domain.User","com.itheima.domain.Student"};
    }
}
